package com.study.manage.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.study.manage.domain.enumm.OrdersType;
import com.study.manage.domain.enumm.PayState;

@Entity
@Table(name = "sa_orders")
public class Orders extends AbstractEntity {

    private static final long serialVersionUID = 5535409481110171726L;

    public String name;
    @Column(name = "typee")
    public OrdersType type = OrdersType.SP;
    public Float total;
    public String orderNo;
    public Long userId;
    public Long distributionId;
    public PayState payState = PayState.DZF;
    public Date payAt;
    public Long extId;
    public Long evaluateId;

    public Orders() {}

    public Orders(Long id) {
        this.id = id;
    }
}
